home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / action next >
Encoding:
Text File  |  2001-03-21  |  733 b   |  26 lines

  1. Synopsis:
  2.    on [<modes>]action [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client observes a CTCP ACTION.  It
  6.    will hook when the recipient is either the user or a channel.
  7.  
  8. Parameters:
  9.    $0    nickname of the ACTION sender
  10.    $1    target of the ACTION (user's nickname or a channel)
  11.    $2-   message body of the ACTION
  12.  
  13. Examples:
  14.    To distinguish personal actions from those sent to a channel:
  15.       on ^action "*" {
  16.          switch ( $1 ) {
  17.             ( $N ) { echo *> $0 $2- }
  18.             ( $C ) { echo * $0 $2- }
  19.             ( * )  { echo * $0/$1 $2- }
  20.          }
  21.       }
  22.  
  23. See Also:
  24.    ctcp(1) action; describe(1); me(1); on(5) send_action
  25.  
  26.